import { request } from '@/utils'

//频道数据请求
export function GetChannelApi() {
    try {
        return request({
            url: '/geek/channels',
            method: 'GET',
        })
    } catch (error) {
        console.log("error:", error)
    }
}

//获取频道对应文章count件数
export function GetChaneelCountApi() {
    try {
        return request({
            url: '/geek/channels/count',
            method: 'GET',
        })
    } catch (error) {
        console.log("error:", error)
    }
}